//GoodsService.java
package org.example.examtemplate01.Service;

import org.example.examtemplate01.module.Goods;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GoodsService {
    //获取goods列表
    List<Goods> fetchGoodsList();

    //删除对应ID的goods
    int removeGoodsById(int id);

    //新增Goods
    int add(Goods goods);

    //修改对应ID的goods
    Goods fetchGoodsById(int id);

    //修改Goods
    int edit(Goods goods);

    //分页获取goods列表
    List<Goods> fetchByPage(int currentPage, int pageSize);

}
